import Router from 'vue-router'
import Vue from '../vue'
import App from '../component/app/app.vue'
import Promoters from '../component/activity/promoters/promoter-list/promoter-list.vue'
import SettleDetail from '../component/activity/promoters/settle-detail/settle-detail.vue'
import Audit from '../component/activity/promoters/audit/audit.vue'
import Rule from '../component/activity/promoters/rule/rule.vue'
import Sharelist from '../component/activity/promoters/share-list/share-list.vue'
import ConfigBanner from '../component/activity/promoters/config-banner/config-banner.vue'

Vue.use(Router)
var app = Vue.extend(App)
var router = new Router()

router.map({
  '/': {
    component: Promoters
  },
  '/audit': {
    component: Audit
  },
  '/rule': {
    component: Rule
  },
  '/settle/:phone': {
    component: SettleDetail
  },
  '/sharelist': {
    component: Sharelist
  },
  '/banner': {
    component: ConfigBanner
  }
})

router.start(app, 'app')
